using System;
using System.Collections.Generic;
using System.Drawing;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;

namespace RPGOnline.Controls.Map.Layers
{
    public class ShadowPolygon
    {
        private List<CustomVertex.TransformedColored> m_points = new List<CustomVertex.TransformedColored>();

        public void AddPoint(Vector2 point)
        {
            m_points.Add(new CustomVertex.TransformedColored(point.X, point.Y, 0, 1.0f, Color.FromArgb(128, Color.Black).ToArgb()));
        }

        public CustomVertex.TransformedColored[] TriangleStrip()
        {
            return m_points.ToArray();
        }
    }
}